package day02;

public class DoubleDemo {
    public static void main(String[] args) {
        //3)double:双精度浮点数,8个字节
        double a =3.14;
        float b =3.14F;//3.14F为float型直接量

        double c = 3.0,d=2.9;
        System.out.println(c-d);
        double e = 6.0,f=4.9;
        System.out.println(e-f);
        double g = 6.0,h=1.9;
        System.out.println(g-h);

        double cc=3.0,dd=2.9;
        System.out.println(cc-dd);
        double ee=6.0,ff=4.9;
        System.out.println(ee-ff);
        double gg=5.0,hh=1.9;
        System.out.println(gg-hh);

        double ccc=3.0,ddd=2.99;
        System.out.println(ccc-ddd);
        double eee=6.1,fff=4.9;
        System.out.println(eee-fff);
        double a1=2.11,b1=2.10;
        System.out.println("相减为"+(a1-b1));
    }
}
